<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){} %>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 0px;">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">

                <div class="col-md-2 col-sm-2 col-xs-12" style="padding: 0px;">
                    <div class="widget flat radius-bordered">
                        <div class="widget-header bg-lightred">
                            <span class="widget-caption">试题分类列表</span>
                        </div>
                        <div class="widget-body">
                            <ul id="tree" class="ztree"></ul>
                            <a href="javascript:void(0);" class="btn btn-purple js-cbut" style="width: 100%;">创建试题</a>
                        </div>
                    </div>
                </div>
                <div class="col-md-10 col-sm-10 col-xs-12" style="padding: 0px">
                    <div class="col-md-12 col-sm-12 col-xs-12" id="questionlist">
                        <div class="row">
                            <div class="widget-body">
                                <table id="myTable"></table>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12 col-sm-12 col-xs-12" style="display: none;" id="createQuestions">
                        <div class="widget">
                            <div class="widget-header bordered-bottom bordered-palegreen">
                                <span class="widget-caption">创建试题</span>
                            </div>
                            <div class="widget-body">
                                <form class="form-horizontal form-bordered" id="from">
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">${i18n('system.sortNo')} ：</label>
                                        <div class="col-sm-2">
                                            <input type="text" class="form-control" id="sortNo" name="sortNo"
                                                   placeholder="${i18n('system.sortNo')}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">试题题干 ：</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" id="title" name="title"
                                                   placeholder="试题标题">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">试题分类：</label>
                                        <div class="col-sm-5" style="position: relative;">
                                            <input type="text" class="form-control" id="sortId" name="sortId"
                                                   placeholder="请选择试题分类 " readonly="readonly">
                                            <div id="menuContent" class="menuContent">
                                                <ul id="menuTree" class="ztree"></ul>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">试题类型 ：</label>
                                        <div class="col-sm-5">
                                            <select id="examType" name="examType" class="form-control">
                                                <option value="0">单选</option>
                                                <option value="1">多选</option>
                                                <option value="2">简述</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group" id="content">
                                        <table class="table table-hover table-striped table-bordered">
                                            <tr class="optclass">
                                                <td colspan="4">考题选项
                                                    <div style="float: right;"><a href="javascript:void(0);"
                                                                                  class="btn btn-sky btn-xs js-child-item">添加选项</a>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr class="optclass">
                                                <td colspan="4">
                                                    <table class="table table-hover table-striped table-bordered" id="child-item-table">
                                                        <tr>
                                                            <td width="100px">选项</td>
                                                            <td>试题题支</td>
                                                            <td width="100px">操作</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">答案 ：</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" id="answer" name="answer"
                                                   placeholder="答案：多项时用,间隔">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">分值 ：</label>
                                        <div class="col-sm-2">
                                            <input type="text" class="form-control" id="grade" name="grade"
                                                   placeholder="分值">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">备注 ：</label>
                                        <div class="col-sm-5">
                                            <textarea rows="5" cols="" class="form-control" id="remark"
                                                      name="remark"></textarea>
                                        </div>
                                    </div>
                                    <div class="form-group" align="center">
                                        <a href="javascript:void(0);" class="btn btn-primary js-save">${i18n('ok')}</a>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<%include("/app/resapi/sysjs.html"){} %>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/gobal/js/page/exam/setquestions.js"></script>

</html>
